package com.lln.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lln.mapper.EmployeeMapper;
import com.lln.pojo.Employee;
import com.lln.pojo.PageVo;
import com.lln.service.EmployeeService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("employeeService")
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements EmployeeService {
    @Override
    public List<Employee> findSearchByKeyword(String keyword, Integer day, PageVo pageVo) {
        Integer num = (pageVo.getPageNum() -1) * pageVo.getPageSize();
        return baseMapper.findSearchByKeyword(keyword, day, num, pageVo.getPageSize());
    }
    //extends ServiceImpl ServiceImpl  ServiceImpl
}
 